package day03;

public class OperDemo3 {
    public static void main(String[] args) {
        //逻辑运算符：&& || ！
        int a = 5,b = 10,c = 5;
        /*
        boolean b1 = a>b && c<b;
        System.out.println(b1);
        System.out.println(b>a && c>b);
        System.out.println(a==b && c<b);
        System.out.println(a!=c && b<a);
        System.out.println(a==c && b>a);

        int age = 40;
        System.out.println(age >= 18 && age <= 50);

        boolean b2 = a>b || a!=c;
        System.out.println(b2);
        System.out.println(b>=a || b<c);
        System.out.println(b<=c || b>a);
        System.out.println(b!=c || a<b);
        System.out.println(a==b || c>b);

        int score = 90;
        System.out.println(score < 0 || score > 100);

        boolean b3 = !(a<c);
        System.out.println(b3);
        System.out.println(!(a==c));
         */

        boolean b4 = a>b && c++>5;
        System.out.println(b4);
        System.out.println(c);

        boolean b5 = a<b || c++>2;
        System.out.println(b5);
        System.out.println(c);
    }
}
